package com.ruoyi.whc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检测点管理对象 checkpoint
 * 
 * @author whc
 * @date 2022-09-22
 */
public class Checkpoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检测点id */
    private Long cpid;

    /** 区域id */
    @Excel(name = "区域id")
    private Long areaid;

    //区域名字
    private String deptName;

    /** 检测点地址 */
    @Excel(name = "检测点地址")
    private String caddress;

    /** 检测点名称 */
    @Excel(name = "检测点名称")
    private String cpname;

    /** 检测点状态 */
    @Excel(name = "检测点状态")
    private String cpstatus;

    /** 日期 */
    @Excel(name = "日期")
    private String date;

    /** 开启时间 */
    @Excel(name = "开启时间")
    private String startdate;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endtime;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 维度 */
    @Excel(name = "维度")
    private String latitude;

    /** 最大检测人数 */
    @Excel(name = "最大检测人数")
    private Long maxuser;

    /** 最大医护人员 */
    @Excel(name = "最大医护人员")
    private Long maxblackuser;

    /** 部门对象 */
    @Excels({
            @Excel(name = "地区名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })

    private SysDept dept;


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getCpid() {
        return cpid;
    }

    public void setCpid(Long cpid) {
        this.cpid = cpid;
    }

    public Long getAreaid() {
        return areaid;
    }

    public void setAreaid(Long areaid) {
        this.areaid = areaid;
    }

    public String getCaddress() {
        return caddress;
    }

    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    public String getCpname() {
        return cpname;
    }

    public void setCpname(String cpname) {
        this.cpname = cpname;
    }

    public String getCpstatus() {
        return cpstatus;
    }

    public void setCpstatus(String cpstatus) {
        this.cpstatus = cpstatus;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Long getMaxuser() {
        return maxuser;
    }

    public void setMaxuser(Long maxuser) {
        this.maxuser = maxuser;
    }

    public Long getMaxblackuser() {
        return maxblackuser;
    }

    public void setMaxblackuser(Long maxblackuser) {
        this.maxblackuser = maxblackuser;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Checkpoint{" +
                "cpid=" + cpid +
                ", areaid=" + areaid +
                ", caddress='" + caddress + '\'' +
                ", cpname='" + cpname + '\'' +
                ", cpstatus='" + cpstatus + '\'' +
                ", date='" + date + '\'' +
                ", startdate='" + startdate + '\'' +
                ", endtime='" + endtime + '\'' +
                ", phone='" + phone + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", maxuser=" + maxuser +
                ", maxblackuser=" + maxblackuser +
                ", dept=" + dept +
                '}';
    }
}
